package com.dy.lock.screen.dao;

import java.util.List;
import java.util.Map;

import com.dy.lock.screen.pojo.ScoreInfo;
import com.dy.lock.screen.vo.EverydayToday;

public interface ScoreDao extends BaseDao<ScoreInfo, String> {

	public List<ScoreInfo> queryIncomeBills(String customerId);
	
	public List<ScoreInfo> queryPayBills(String customerId);

	public List<EverydayToday> queryIncomeBillDetail(Map<String, String> paraMap);

	public List<EverydayToday> queryPayBillDetail(Map<String, String> paraMap);

	public ScoreInfo queryByCustomerId(ScoreInfo scoreInfo);

	/**
	 * 通过主键查询
	 * 
	 * @param costomerId
	 * @return
	 */
	public ScoreInfo queryByPrimaryKey(String costomerId);

	/**
	 * 更新积分
	 * 
	 * @param scoreInfo
	 * @return
	 */
	public int updateScore(ScoreInfo scoreInfo);
}
